<?php
namespace App\Models;

use App\Models\Scope\ServiceScope;

class Service extends CommonModel {
	protected $table = 'service';
	
	/**
	 * 全局筛选作用域
	 */
	protected static function boot()
	{
		parent::boot();
		static::addGlobalScope(new ServiceScope());
	}
	
	public static $type = [
		['type_id'=>1,'name'=>'物业简介'],
		['type_id'=>2,'name'=>'服务团队'],
		['type_id'=>3,'name'=>'服务内容'],
		['type_id'=>4,'name'=>'物业公示'],
		['type_id'=>5,'name'=>'办事流程'],
		['type_id'=>6,'name'=>'法律法规'],
		['type_id'=>7,'name'=>'百问百答'],
	];
}